package com.zzx.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzx.common.core.page.TableDataInfo;
import com.zzx.common.utils.PageUtils;
import com.zzx.business.domain.BusinessFreightOrder;
import com.zzx.business.vo.BusinessFreightOrderVo;
import com.zzx.business.mapper.BusinessFreightOrderMapper;
import com.zzx.business.service.IBusinessFreightOrderService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 运输信息Service业务层处理
 *
 * @author Z、zx
 * @date 2024-08-21
 */
@Service
public class BusinessFreightOrderServiceImpl extends ServiceImpl<BusinessFreightOrderMapper, BusinessFreightOrder> implements IBusinessFreightOrderService {

    @Override
    public TableDataInfo<BusinessFreightOrderVo> queryList(BusinessFreightOrderVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<BusinessFreightOrderVo> queryAll(BusinessFreightOrderVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public BusinessFreightOrderVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
